package com.ruoyi.terminal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.terminal.mapper.DcTermasgnMapper;
import com.ruoyi.terminal.domain.DcTermasgn;
import com.ruoyi.terminal.service.IDcTermasgnService;

/**
 * 设备分配与认领Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-02-02
 */
@Service
public class DcTermasgnServiceImpl implements IDcTermasgnService 
{
    @Autowired
    private DcTermasgnMapper dcTermasgnMapper;

    /**
     * 查询设备分配与认领
     * 
     * @param termImei 设备分配与认领ID
     * @return 设备分配与认领
     */
    @Override
    public DcTermasgn selectDcTermasgnById(String termImei)
    {
        return dcTermasgnMapper.selectDcTermasgnById(termImei);
    }

    /**
     * 查询设备分配与认领列表
     * 
     * @param dcTermasgn 设备分配与认领
     * @return 设备分配与认领
     */
    @Override
    public List<DcTermasgn> selectDcTermasgnList(DcTermasgn dcTermasgn)
    {
        return dcTermasgnMapper.selectDcTermasgnList(dcTermasgn);
    }

    /**
     * 修改设备分配与认领
     * 
     * @param dcTermasgn 设备分配与认领
     * @return 结果
     */
    @Override
    public int updateDcTermasgn(DcTermasgn dcTermasgn)
    {
        return dcTermasgnMapper.updateDcTermasgn(dcTermasgn);
    }

}
